package cn.wolfcode.luowowo2.article.mapper;

import cn.wolfcode.luowowo2.article.domain.StrategyDetail;
import cn.wolfcode.luowowo2.article.vo.StrategyStatisVO;
import cn.wolfcode.luowowo2.common.query.StrategyDetailQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetail record);

    StrategyDetail selectByPrimaryKey(Long id);

    List<StrategyDetail> selectAll();

    int updateByPrimaryKey(StrategyDetail record);

    List<StrategyDetail> selectForList(StrategyDetailQueryObject qo);

    void updateStateById(@Param("state") Byte state,@Param("id") Long id);

    List<StrategyDetail> selectStrategyByDestId(Long id);

    List<StrategyDetail> selectByViewNumTop3(Long id);

    void updateRedisVO(StrategyStatisVO vo);

    List<StrategyDetail> selectByStrateyId(Long strategyId);
}